using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 员工
///</summary>
[SugarTable("pe_employee")]
public class PeEmployeeEntity : EntityFull
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 用户Id
    ///</summary>
    [SugarColumn(ColumnName = "UserId")]
    public long? UserId { get; set; }
    
    /// <summary>
    /// 姓名
    ///</summary>
    [SugarColumn(ColumnName = "Name")]
    public string? Name { get; set; }
    
    /// <summary>
    /// 昵称
    ///</summary>
    [SugarColumn(ColumnName = "NickName")]
    public string? NickName { get; set; }
    
    /// <summary>
    /// 性别
    ///</summary>
    [SugarColumn(ColumnName = "Sex")]
    public string? Sex { get; set; }
    
    /// <summary>
    /// 工号
    ///</summary>
    [SugarColumn(ColumnName = "Code")]
    public string? Code { get; set; }
    
    /// <summary>
    /// 主属部门Id
    ///</summary>
    [SugarColumn(ColumnName = "OrganizationId")]
    public long OrganizationId { get; set; }
    
    /// <summary>
    /// 主管Id
    ///</summary>
    [SugarColumn(ColumnName = "PrimaryEmployeeId")]
    public long? PrimaryEmployeeId { get; set; }
    
    /// <summary>
    /// 职位Id
    ///</summary>
    [SugarColumn(ColumnName = "PositionId")]
    public long PositionId { get; set; }
    
    /// <summary>
    /// 手机号
    ///</summary>
    [SugarColumn(ColumnName = "Phone")]
    public string? Phone { get; set; }
    
    /// <summary>
    /// 邮箱
    ///</summary>
    [SugarColumn(ColumnName = "Email")]
    public string? Email { get; set; }
    
    /// <summary>
    /// 入职时间
    ///</summary>
    [SugarColumn(ColumnName = "EntryTime")]
    public DateTime? EntryTime { get; set; }
    
    /// <summary>
    /// 租户Id
    ///</summary>
    [SugarColumn(ColumnName = "TenantId")]
    public long? TenantId { get; set; }
    
    /// <summary>
    /// 版本
    ///</summary>
    [SugarColumn(ColumnName = "Version")]
    public long Version { get; set; }
    }
